package com.ltx.service;

import com.ltx.dao.UserMapper;
import com.ltx.pojo.User;

import java.util.List;


public class UserServiceImpl implements UserService{

    private  UserMapper userMapper;
    public void setUserMapper(UserMapper userMapper) {
        this.userMapper = userMapper;
    }


    @Override
    public List<User> queryAllUser() {
        return userMapper.queryAllUser();
    }

    @Override
    public User queryUserByName(String name) {
        return userMapper.queryUserByName(name);
    }



}
